package com.andaily.domain.thing.handler;

import com.andaily.domain.user.User;
import com.andaily.domain.user.UserRepository;
import com.andaily.web.context.BeanProvider;

import java.util.List;

/**
 * Date: 13-7-19
 *
 * @author Shengzhao Li
 */
public class AutoStartThingUserResolver {

    private transient UserRepository userRepository = BeanProvider.getBean(UserRepository.class);

    public AutoStartThingUserResolver() {
    }

    public List<User> resolve() {
        return userRepository.findAutoStartThingUsers();
    }
}
